package edu.sctu.fengleilin.month05.day150507;

/**
 * Created by user09 on 2015/5/8.
 */
public class ArrayStudent {
//    public static class Test {

    public static void main(String[] args) {

        Student s[] = new Student[3];
        s[0] = new Student("张三" , 001 , "女");
        s[1] = new Student("李四" , 002 , "男");
        s[2] = new Student("王五" , 003 , "男");
    }



    static class Student {
        private String name ;
        private int number ;
        private String sex ;

        public Student(String name , int number, String sex ) {
            this.name = name ;
            this.number = number ;
            this.sex = sex ;
        }



        public String getName() {
            return name ;
        }
        public void setName(String name) {
            this.name = name ;
        }

        public int getNumber() {
            return number ;
        }
        public void setNumber(int number) {
            this.number = number ;
        }


        public String getSex() {
            return sex ;
        }
        public void setSex(String sex) {
            this.sex = sex ;
//for (int i=0;i< s.length;i++)
//{            System.out.println();
        }

    }
}
